package sn.gandal.agriculture.agrimobile.j2me.businessObjects;

import java.io.IOException;
import java.util.Vector;
import javax.microedition.rms.RecordStoreException;

/**
 *
 * @author dysow
 */
public interface IBusinessServices
{

 
    public String validerSauvegardeAbonne(Membre abonne);

    public int getAgentDePeseeIdentifiant() throws RecordStoreException, IOException;

    public boolean abonneIdExiste(String idAbonne);

   

    public boolean ajouterAbonne(Membre abonne);

   
    public Adresse getAdresseEnregistree() throws RecordStoreException, IOException;

    public String getAbonneId();

    public String validateRechercheAbonne(Membre abonne);

    public Membre[] getRechercheAbonneList(int abonneId, String prenom, String nom, String prenomMere, String nomMere);

    public boolean modifierAbonne(Membre abonne);

    public boolean supprimerAbonne(int abonneIdInt);

    public boolean agentDePeseeExists(String adpId);

    public void deleteAllData();

    public void reinitialiserAbonneList(Vector vecAbonneList) throws RecordStoreException, IOException;

    public Membre getAbonneDetails(int idAbonneInt);

    public String validerChampsAbonne(String telephonePayeur, String telephone);

   
    public String statutConnexion();

    public void reinitialiserConvocationList(Vector vector) throws RecordStoreException, IOException;

    public String validerDates(Membre newAbonne);

    public void saveWebAdresse(Adresse adresse) throws RecordStoreException, IOException;

    public String validerChampsEditAbonne(String telephonePayeur, String telephone);

    public Membre[] getListeAbonnesModifies() throws RecordStoreException, IOException;

   
    public boolean isAbonnesLoaded();

 
    public void updateIdentifiantsStore() throws RecordStoreException , IOException;
    public void updateIdentifiantsStore(Vector vector) throws RecordStoreException , IOException;
    public int generateNewAbonneId();
    public boolean isAbonneLoaded()throws RecordStoreException;
}
